VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
END
Attribute VB_Name = "WorkbookEventHandler"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit

Private WithEvents myWorkbook As Workbook

Public Sub HandleOpen()

Dim theInitialiser As xlUnitInitialiser

    Set theInitialiser = New xlUnitInitialiser
    Set theFactory = New xlUnitFactory
    
End Sub

Private Sub Class_Initialize()
    Set myWorkbook = ThisWorkbook
    HandleOpen
End Sub

Private Sub myWorkbook_BeforeClose(Cancel As Boolean)

Dim xlui As xlUnitUIManager

    Set xlui = New xlUnitUIManager
    
    xlui.TidyUp

End Sub

